import request from '@/utils/request'
interface pageConf {
  num: string | number;
  page: string | number;
}
// 查询房屋信息
export const getHouses = (params:any) => request.get(`/community/house/?community_uuid=${params.community_uuid}&page=${params.page}&num=${params.num}`)
// 查询逾期房屋信息
export const getOverdueHouse = (params:any) => request.get(`/community/house/?community_uuid=${params.community_uuid}&overdue=${params.overdue}&page=${params.page}&num=${params.num}`)

// 创建小区信息
export const createHouses = (data:any) => request.post('/community/house',data)

// 修改小区信息
export const updateHouses = (data:any) => request.put('/community/house',data)

// 删除小区信息
export const deleteHouses  = (data: any) => request.delete('/community/house', { data: data })
